chrome.runtime.onInstalled.addListener(function () {
  chrome.declarativeContent.onPageChanged.removeRules(undefined, function () {
    chrome.declarativeContent.onPageChanged.addRules([{
      conditions: [
          new chrome.declarativeContent.PageStateMatcher({
            pageUrl: { hostContains: '172.16.6' },
          })
        ],
      actions: [new chrome.declarativeContent.ShowPageAction()]
    }]);
    chrome.declarativeContent.onPageChanged.addRules([{
      conditions: [
          new chrome.declarativeContent.PageStateMatcher({
            pageUrl: { hostContains: 'localhost' },
          })
        ],
      actions: [new chrome.declarativeContent.ShowPageAction()]
    }]);
  });
});

